package dk.dashboardFP.dfpLogger {

	/**
	 * @author josef
	 */
	public class LogGroup {
		
		private var _intGroupId : int;
		private var _sLabel : String = "";
		private var _uintColor : Number=0;
		private var _bVisible:Boolean = true;
		private var _bLogWhileHidden : Boolean = true;
		private var _level : int=0;

		
		public function LogGroup(intGroupId:int) {
			_intGroupId = intGroupId;
		}
		
		public function get name() : String {
			if (_sLabel=="") {
				return "Group " + _intGroupId;
			} else {
				return _sLabel; 
			}
			 
		}
		
		public function get logWhileHidden() : Boolean { 
			return _bLogWhileHidden; 
		}
		
		public function set logWhileHidden(oNewValue:Boolean) : void { 
			_bLogWhileHidden=oNewValue;
		}
		
		public function set name(oNewValue:String) : void { 
			_sLabel=oNewValue;
		}
		
		public function get color() : Number { 
			return _uintColor; 
		}
		
		public function set color(oNewValue:Number) : void { 
			_uintColor=oNewValue;
		}
		
		public function get groupId() : int {
			return _intGroupId;
		}
		
		public function get visible() : Boolean {
			return _bVisible;
		}
		
		public function set visible(bVisible : Boolean) : void {
			_bVisible = bVisible;
		}
		
		public function get level() : int { 
			return _level; 
		}
		
		public function set level(oNewValue:int) : void { 
			_level=oNewValue;
		}
		
	}
}
